package edu.hrbu.spring.pojo;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @author 徐登宇
 */
@Component
public class A {
    public A() {
        System.out.println("A被实例化。。。");
    }
}

@Controller
class B {
    public B() {
        System.out.println("B被实例化。。。");
    }
}

@Service
class C {
    public C() {
        System.out.println("C被实例化。。。");
    }
}

@Repository
class D {
    public D() {
        System.out.println("D被实例化。。。");
    }
}
